package com.intelligence.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.intelligence.entity.pojo.SysUser;
import com.intelligence.entity.model.LoginModel;
import com.intelligence.entity.model.TokenModel;
import com.intelligence.entity.result.Result;
import com.intelligence.entity.vo.SysUserVo;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_user】的数据库操作Service
* @createDate 2024-05-15 19:38:31
*/
public interface SysUserService extends IService<SysUser> {
    Result<TokenModel> login(LoginModel loginModel);

    void logout(String token);

    Page<SysUserVo> selectAllUsersAndRole(Integer offset, Integer pageSize, Integer roleId);

    int alertTheStatus(Integer id);

    void saveNewUser(SysUser sysUser);
}
